package wrappers;

public class Link {
	private int id,source, target, sourceType, targetType;
	public Link(int id, int source, int target, int sourceType, int targetType) {
		this.setId(id);
		this.setSource(source);
		this.setTarget(target);
		this.setSourceType(sourceType);
		this.setTargetType(targetType);
	}
	public int getSource() {
		return source;
	}

	public void setSource(int source) {
		this.source = source;
	}

	public int getTarget() {
		return target;
	}

	public void setTarget(int target) {
		this.target = target;
	}

	public int getSourceType() {
		return sourceType;
	}

	public void setSourceType(int sourceType) {
		this.sourceType = sourceType;
	}

	public int getTargetType() {
		return targetType;
	}

	public void setTargetType(int targetType) {
		this.targetType = targetType;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	
	public String toString(){
		return source+" "+target+" "+sourceType+" "+targetType;
	}
}
